<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>会员信息修改页 - ${web.name}${web.additionalTitle!}</title>
<link href="${root}/u/css/main.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/memeber.css" type="text/css" rel="stylesheet" />
<link href="${sysResRoot}/front.css" rel="stylesheet" type="text/css"/>
<script src="${sysResRoot}/jquery.js" type="text/javascript"></script>
<script src="${base}/thirdparty/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript">
function g(o){
	return document.getElementById(o);
}
$(function() {
	$("#jvForm").validate();
	$("#jvForm1").validate();
	$("#jvForm2").validate();
});
function HoverLi(m,n,counter){
	for(var i=1;i<=counter;i++){
		g('tb_'+m+i).className='normaltab3';
		g('tbc_'+m+i).className='undis';
	}
	g('tbc_'+m+n).className='dis';
	g('tb_'+m+n).className='curr3';
}
function checkJvForm(){
	var mobile=$("#mobile").val();
	if(mobile==null||mobile==""){
		$("#checkmobile").html("请输入您的手机号码");
	}else if(mobile.length != 11 || !/^[0-9]+$/.test(mobile)) {
		message = "您输入的格式有误，请重新输入您的手机号码。";
		$("#checkmobile").html(message);
		return;
	}else{
		$("#checkmobile").html("");
	}

    var flagcar=false;
	 $("input[name='isCar']").each(function(){
		 if(this.checked){flagcar=true;}
	 });
	 if(!flagcar){
      $("#checkIsCar").html("请勾选是否有车！");
      return;
	 }else{
		 $("#checkIsCar").html("");
	 }
	
	$("#jvForm").submit();
}

function checkJvForm2(){
    var flag=false;
	$("#jvForm2").submit();
}

</script>
<style>
.xinxiInput{ border:1px solid #999;}
</style>
</head>
<body>
[#--
[#include '../shop/inc_head.html'/]
--]
[#include "../include/会员中心页头顶栏.html"/]
<div class="w1168">
    [#include "会员中心_导航.html"/]
    <div class="user_right">
        <ul class="ysppm_rg_ul">
            <li [#if flag==1] class="curr3"[#else]class="normaltab3"[/#if] id="tb_11" onclick="HoverLi(1,1,3);">修改个人信息</li>
            <li [#if flag==2] class="curr3"[#else]class="normaltab3"[/#if] id="tb_12" onclick="HoverLi(1,2,3);">更多个人信息</li>
            <li [#if flag==3] class="curr3"[#else]class="normaltab3"[/#if] id="tb_13" onclick="HoverLi(1,3,3);">兴趣爱好</li>
        </ul>
    <div class="mc_content">
    <div id="tbc_11" [#if flag==1] class="dis"[#else]class="undis"[/#if]>
    <form id="jvForm" action="${base}/shopMember/profile.jspx?cl=tbg_20" method="post">
    <div style="float:left;widht:500px; margin-top:10px;">
      <table border="0" align="center" cellpadding="2" cellspacing="1">
       <tr>
          <td width="100" height="40" align="right" style="font-size:12px; color:#666666;">用户名：</td>
          <td width="500">&nbsp;${member.username}</td>
       </tr>
       <tr>
          <td height="40" align="right" style="font-size:12px; color:#666666;">
           <font color="red">*</font>邮箱 ：</td>
          <td>&nbsp;<input type="text" id="email" name="email" value="${member.email!}" class="profile_input required email" /></td>
       </tr>
      <tr>
          <td height="40" align="right" style="font-size:12px; color:#666666;">
             <font color="red">*</font>真实姓名：</td>
          <td>&nbsp;<input type="text" id="realName" name="realName" value="${member.realName!}" class="profile_input required" /></td>
      </tr>
      <tr>
          <td height="40" align="right" style="font-size:12px; color:#666666;">
             <font color="red">*</font>手机：</td>
          <td>&nbsp;<input type="text" id="mobile" name="mobile" value="${member.mobile!}" class="profile_input required digits"/>
            <font color="red"> <span id="checkmobile"></span></font>
          </td>
      </tr>
     <tr>
          <td height="40" align="right" style="font-size:12px; color:#666666;">电话：</td>
          <td>&nbsp;<input type="text" name="tel" value="${member.tel!}" class="profile_input"/></td>
      </tr>
      <tr>
          <td height="40" align="right" style="font-size:12px; color:#666666;">
             <font color="red">*</font>性别：</td>
          <td>
              &nbsp;&nbsp;<input type="radio" name="gender" value="true"[#if member.gender??] [#if member.gender=true] checked[/#if][/#if] />男&nbsp;&nbsp;
              <input type="radio" name="gender" value="false" [#if member.gender??][#if member.gender=false] checked[/#if] [/#if] />女
          </td>
      </tr>
      <tr>
          <td height="40" align="right" style="font-size:12px; color:#666666;">
             <font color="red">*</font>生日：</td>
          <td>&nbsp;<input type="text" name="birthday" value="${member.birthday!}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate required" style="width:100px; height:22px;"/></td>
      </tr>
       <tr>
          <td height="30" align="right" style="font-size:12px; color:#666666;"> 您的地址：</td>
          <td>&nbsp;<input type="text" id="address" name="address" value="${member.address!}" class="profile_input1"/></td>
      </tr>
    
       <tr>
          <td height="40" align="right" style="font-size:12px; color:#666666;">
             <font color="red">*</font>婚姻状况：</td>
          <td>
             <input type="radio" name="marriage" id="marriage" value="true" [#if member.marriage??][#if member.marriage=true] checked[/#if][/#if]/>已婚
             <input type="radio" name="marriage" id="marriage" value="false" [#if member.marriage??][#if member.marriage=false] checked[/#if][/#if]/>未婚
             <input type="radio" name="marriage" id="marriage" value="" [#if !member.marriage??]checked[/#if]/>保密
          </td>
      </tr>
    
    
       <tr>
          <td height="40" align="right" style="font-size:12px; color:#666666;">
             <font color="red">*</font>是否有车：</td>
          <td>
             <input type="radio" name="isCar" id="isCar" value="true" [#if member.isCar??][#if member.isCar=true] checked[/#if][/#if]/>是
             <input type="radio" name="isCar" id="isCar" value="false" [#if member.isCar??][#if member.isCar=false] checked[/#if][/#if]/>否
             <font color="red"><span id="checkIsCar"></span></font>
          </td>
      </tr>
       <tr>
         <td height="40">&nbsp;</td>
          <td>
          <input type="hidden" name="id" value="${member.id}"/>
          <input type="hidden" name="flag" value="1"/>
           <input type="button" value="提交" onclick="checkJvForm();" class="menu_ok"/>
            &nbsp; <input type="reset" value="重置" class="menu_ok"/>
            <input type="hidden" name="backUrl" value="${location}"/></td>
       </tr>
     </table>
     </div>
    
    </form>
    </div>
    <div id="tbc_12"  [#if flag==2] class="dis"[#else]class="undis"[/#if]>
    <form id="jvForm1" action="${base}/shopMember/profile.jspx?cl=tbg_20" method="post">
      <table border="0" align="center" cellpadding="2" cellspacing="1" style="margin-top:15px;">
      <tr>
          <td width="100" height="40" align="right" style="font-size:12px; color:#666666;">单位名称：</td>
          <td width="600"><input type="text" id="company" name="company" value="${member.company!}" class="profile_input1"  /></td>
      </tr>
    
     <tr>
          <td height="40" align="right" style="font-size:12px; color:#666666;">职位：</td>
          <td><input type="text" name="position" value="${member.position!}" class="profile_input1"/>
             例如： 一般员工 经理 总监 CEO
          </td>
      </tr>
    
     
      <tr>
          <td height="40" align="right" style="font-size:12px; color:#666666;">毕业学校：</td>
          <td><input type="text" name="schoolTag" id="schoolTag" value="${member.schoolTag!}" class="profile_input1"/></td>
      </tr>
      <tr>
          <td height="40" align="right" style="font-size:12px; color:#666666;">毕业时间：</td>
          <td><input type="text" name="schoolTagDate" id="schoolTagDate" value="${member.schoolTagDate!}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate" style="width:100px; height:22px;"/></td>
      </tr>
       <tr>
         <td height="40">&nbsp;</td>
          <td>
          <input type="hidden" name="id" value="${member.id}"/>
           <input type="submit" value="提交"  class="menu_ok"/>
           <input type="hidden" name="flag" value="2"/>
            &nbsp; <input type="reset" value="重置" class="menu_ok"/>
            <input type="hidden" name="backUrl" value="${location}"/></td>
       </tr>
     </table>
    </form>
    </div>
    <div id="tbc_13"  [#if flag==3] class="dis"[#else]class="undis"[/#if]>
    <form id="jvForm2" action="${base}/shopMember/profile.jspx?cl=tbg_20" method="post">
      <table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" style="margin-top:15px;">
     <tr>
          <td height="140" align="right" style="font-size:12px; color:#666666;">最喜爱的品牌：</td>
          <td>
             <textarea cols="70" rows="5" name="favoriteBrand" class="xinxiInput">${member.favoriteBrand!}</textarea>
          </td>
      </tr>
      <tr>
          <td height="140" align="right" style="font-size:12px; color:#666666;">最喜爱的明星：</td>
          <td>
              <textarea cols="70" rows="5" name="favoriteStar" class="xinxiInput">${member.favoriteStar!}</textarea>
          </td>
      </tr>
      
      <tr>
          <td height="140" align="right" style="font-size:12px; color:#666666;"> 最喜爱的电影：</td>
          <td>
             <textarea cols="70" rows="5" name="favoriteMovie" class="xinxiInput">${member.favoriteMovie!}</textarea>
          </td>
      </tr>
      <tr>
          <td height="140" align="right" style="font-size:12px; color:#666666;">
             最喜爱的人物：</td>
          <td> 
             <textarea cols="70" rows="5" name="favoritePersonage" class="xinxiInput">${member.favoritePersonage!}</textarea>
          </td>
      </tr>
       <tr>
          <td height="30">&nbsp;</td>
          <td>
          <input type="hidden" name="id" value="${member.id}"/>
           &nbsp;<input type="button" value="提交" onclick="checkJvForm2();" class="menu_ok"/>
            &nbsp; <input type="reset" value="重置" class="menu_ok"/>
            <input type="hidden" name="backUrl" value="${location}"/>
            <input type="hidden" name="flag" value="3"/></td>
       </tr>
     </table>
    </form>
    </div>
    </div>    
    </div>
    
    <div class="clear10"></div><div class="clear10"></div>
    [#--<p>[#include 'inc_member_function.html'/]</p>
    <div>[@process_time/]</div>
	--]
</div>
[#include "../include/页脚信息栏.html"/]
</body>
</html>